#include"Sir.h"
Siruri::Siruri()
{
    char data[100],i=0,k;
    ifstream fin;
    fin.open("sir.txt",ios::in);
    fin >> data;
    k=0;
    while(data[k]!='\0') ++k;
    this->sir[i]=data[k-1];
    ++i;
    while (!fin.eof( ))
    {
         fin >> data;
        k=0;
        while(data[k]!='\0') ++k;
        this->sir[i]=data[k-1];
         ++i;
    }
    this->sir[i]='\0';
    fin.close();

}
ostream &operator<<(ostream &flux, Siruri &obiect)
{
    flux<<obiect.sir;
    return flux;
}
